.NET Framework Class Library |
Lazy<(Of <(T>)>)..::.IsValueCreated Property |
Lazy<(Of <(T>)>) Class See Also Send Feedback |
Gets a value indicating whether the Lazy<(Of <(T>)>) has been initialized.
Namespace:
System
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public ReadOnly Property IsValueCreated As Boolean |
C# |
---|
public bool IsValueCreated { get; } |
Field Value
true if the Lazy<(Of <(T>)>) instance has been initialized; otherwise, false.Remarks
The initialization of a Lazy<(Of <(T>)>) instance may result in either
a value being produced or an exception being thrown. If an exception goes unhandled during initialization,
IsValueCreated will return false.